home *** CD-ROM | disk | FTP | other *** search
/ Complete Guide to Dogs / Complete Guide to Dogs (1997)(SoftKey)[Mac-PC].iso / pc / install.dat < prev    next >
Text File  |  1997-05-10  |  12KB  |  405 lines

  1. //***************************************************************
  2. //***************************************************************
  3. //
  4. //    Installation script for Complete Guide to Dogs.
  5. //
  6. //    1.  Verify that the system has:
  7. //
  8. //        a.  a 486 or a Pentium processor
  9. //        b.  at least 8 Megs of RAM
  10. //        c.  a VGA or better video card
  11. //        d.  a CD ROM drive
  12. //        e.  the MSCDEX CD ROM driver loaded and
  13. //                its version is 2.0 or later.
  14. //
  15. //    2.  Optionally install the OMO Player 1.1.2 into
  16. //        a user-selected directory.
  17. //
  18. //    3.  Create the Dog Guide program group containing the
  19. //        Guide to Dogs product icon.
  20. //
  21. //    4.  Install QuickTime for Windows 2.1.1 into the Windows
  22. //        directory.
  23. //
  24. //    5.  Display the README.TXT file.
  25. //
  26. //***************************************************************
  27. //***************************************************************
  28.  
  29. @DefineProject
  30.     @Name      = "Complete Guide to Dogs"
  31.     @Version  = "1.0 for Windows"
  32.     @OutDrive = C
  33.     @SubDir      = "\\omoplay"
  34.     @Requires @HardDisk
  35. @EndProject
  36.  
  37. @DefineVars
  38.     @Integer @Meg        = (1024*1024)
  39.                 
  40.     @Integer @MemoryM    = (@EXTTotal/@Meg + 1)
  41.     @Integer @V        = @VideoCard
  42.     @Qstring @Command    = ""
  43.     
  44.     @Qstring @QTVersion    = "2.1.1"
  45.     @Integer @QTFree    = 6000000    // free disk bytes for QuickTime
  46.     @Qstring @QTFreeMS    = "6"
  47.     
  48.     @Qstring @PlayerEXE    = "omoplay.exe"
  49.     @Qstring @PlayerVersion    = "1.1.2"
  50.     @Integer @PlayerFree    = 1810000    // free disk bytes for Player
  51.     @Qstring @PlayerFreeMS    = "1.8"
  52.     @Drive   @PlayerDrive    = Z        // drive for Player (reset below)
  53.     @Drive   @CDDrive    = Z        // CD ROM drive     (reset below)
  54.     
  55.     @Integer @BothFree    = (@QTFree + @PlayerFree)
  56.     
  57.     @Qstring @ProgGroup    = "Dog Guide"
  58.     @Qstring @Product    = "Complete Guide to Dogs"
  59.     @Qstring @Stack        = "dogguide"
  60.  
  61.     @Integer @InstallPlayer   = 100
  62.     @Integer @NoInstallPlayer = 200
  63. @EndVars
  64.  
  65. //----------------------------------------------------------------------
  66. //  Initial startup screen  
  67. //----------------------------------------------------------------------
  68.  
  69. @Display
  70.     Welcome to the installer for @Name.
  71.     This program will install the files onto your hard disk
  72.     that are necessary to run the @Product.
  73.     
  74.     It can install the Oracle Media Objects Player version @PlayerVersion
  75.     onto your hard disk. The OMO Player is the program that
  76.     you will run to interact with the @Product.
  77.     You can also choose not to install the OMO Player,
  78.     and run it directly from the CD instead.
  79.     
  80.     The installer will also install QuickTime for Windows 
  81.     version @QTVersion into your WINDOWS directory. The
  82.     OMO Player will automatically run QuickTime to display
  83.     movies and slide shows. You must install QuickTime onto
  84.     your hard disk.
  85.     
  86.     At the end of the installation, you can view 
  87.     the README.TXT file. 
  88.     
  89.     Press OK to continue the installation, 
  90.     or press Cancel to terminate immediately.
  91.     
  92.     @Pause
  93. @EndDisplay
  94.  
  95. //----------------------------------------------------------------------
  96. //  System info screen  
  97. //----------------------------------------------------------------------
  98.  
  99. @Display
  100.     First, some important information about your system:
  101.     
  102.     Processor:  80@CPU (or later)
  103.     Total memory:  @MemoryM megabytes
  104.     
  105.     CD ROM drive:  @If (@CDRomTotal < 1) NONE @Else @CDRomFirst: @EndIf  
  106.     CD ROM driver version:  @If (@CDRomMajor == 0) NOT LOADED @Else MSCDEX @CDRomMajor.@CDRomMinor @EndIf
  107.     
  108.     Video card:  @If (@V == 77 || @V == 72) MONO @ElseIf (@V == 69) EGA @ElseIf (@V == 86) VGA or better @ElseIf (@V == 67) CGA @Else UNKNOWN @EndIf
  109.     Display driver:  @GetINI("boot", "display.drv", "system.ini")
  110.     
  111.     Windows directory:  @WindowsDrive:@WindowsDir
  112.     Windows version:  @WindowsMajor.@WindowsMinor
  113.     
  114.     Press OK to continue the installation, 
  115.     or press Cancel to terminate immediately.
  116.     
  117.     @Pause
  118. @EndDisplay
  119.  
  120. //----------------------------------------------------------------------
  121. //  Verify minimum system requirements  
  122. //----------------------------------------------------------------------
  123.  
  124. @If (@CDRomTotal < 1)
  125.     @Display
  126.         Your system must have a CD ROM drive to install and run
  127.         @Name.
  128.         
  129.         This installation will now terminate.
  130.         
  131.         @Pause
  132.         @Exit
  133.     @EndDisplay
  134. @Else
  135.     @CDDrive = @CDRomFirst    // set the CD ROM drive letter
  136. @EndIf
  137.  
  138. @If (@DiskFree(@WindowsDrive) < @QTFree)
  139.     @Display    
  140.         You need at least @QTFreeMS megabytes free on the
  141.         Windows drive @WindowsDrive: to install QuickTime for Windows.
  142.         
  143.         This installation will now terminate.
  144.         
  145.         @Pause
  146.         @Exit
  147.     @EndDisplay
  148. @EndIf
  149.  
  150. @If (@CDRomMajor < 2)
  151.     @Display    
  152.         You will need version 2.0 or later of the CD ROM driver MSCDEX
  153.         to run @Name.
  154.     
  155.         Press OK to continue the installation, 
  156.         or press Cancel to terminate immediately.
  157.         
  158.         @Pause
  159.     @EndDisplay
  160. @EndIf
  161.  
  162. @If (@CPU < 386)
  163.     @Display    
  164.         Your system will need at least a 33 MHz 80486 processor
  165.         to run @Name.
  166.     
  167.         Press OK to continue the installation, 
  168.         or press Cancel to terminate immediately.
  169.         
  170.         @Pause
  171.     @EndDisplay
  172. @EndIf
  173.  
  174. @If (@MemoryM < 8)
  175.     @Display    
  176.         Your system will need at least 8 megabytes of memory
  177.         to run @Name.
  178.     
  179.         Press OK to continue the installation, 
  180.         or press Cancel to terminate immediately.
  181.         
  182.         @Pause
  183.     @EndDisplay
  184. @EndIf
  185.  
  186. @If (@V != 86)
  187.     @Display    
  188.         Your system will need a VGA or better monitor
  189.         to run @Name.
  190.     
  191.         Press OK to continue the installation, 
  192.         or press Cancel to terminate immediately.
  193.         
  194.         @Pause
  195.     @EndDisplay
  196. @EndIf
  197.  
  198. //----------------------------------------------------------------------
  199. //  Ask if the user wants to install the player onto a hard drive  
  200. //----------------------------------------------------------------------
  201.  
  202. @Display
  203.     You can install the OMO Player onto a hard disk drive,
  204.     but it will require @PlayerFreeMS megabytes.
  205.     
  206.     To save disk space, you can run the OMO Player from
  207.     the CD ROM drive, but it will perform slower.
  208.     
  209.     The next screen will ask whether or not you want
  210.     to install the OMO Player onto your hard drive.
  211.     
  212.     Press OK to continue the installation, 
  213.     or press Cancel to terminate immediately.
  214.     
  215.     @Pause
  216. @EndDisplay
  217.     
  218. @GetOption
  219.     Please select an option with the mouse or arrow keys:
  220.     
  221.  
  222.  
  223.  
  224.  
  225.     
  226.     Press OK to continue the installation, 
  227.     or press Cancel to terminate immediately.
  228.     
  229.     @Option @InstallPlayer   = "Install the OMO Player."
  230.     @Option @NoInstallPlayer = "Leave it on the CD."
  231. @EndOption
  232.  
  233. @If (@NoInstallPlayer [= @Option)
  234.     @PlayerDrive = @CDDrive
  235.     @Goto SKIP_GET_OUT_DRIVE
  236. @EndIf
  237.      
  238.  
  239. //----------------------------------------------------------------------
  240. //  Prompt for the target drive and directory  
  241. //----------------------------------------------------------------------
  242.  
  243. GET_OUT_DRIVE:
  244.     
  245. @GetOutDrive
  246.     Onto which drive do you wish to install the OMO Player?
  247.     
  248.     @Suppress(0, 1)        // no floppies
  249.     @Suppress(0, 16)        // no CD ROMs
  250.     
  251.     
  252.     
  253.     
  254.     
  255.     Please select a drive with the mouse or with arrow keys.
  256.     
  257.     Press OK to continue the installation, 
  258.     or press Cancel to terminate immediately.
  259. @EndOutDrive
  260.  
  261. @If (@Removable(@OutDrive))
  262.     @Display
  263.         @OutDrive: is a removable drive.
  264.         
  265.         The next screen will ask you 
  266.         to pick another hard drive.
  267.  
  268.         Press OK to continue the installation, 
  269.         or press Cancel to terminate immediately.
  270.         
  271.         @Pause
  272.         @Goto GET_OUT_DRIVE
  273.     @EndDisplay
  274. @ElseIf ((@OutDrive == @WindowsDrive) && (@DiskFree(@OutDrive) < @BothFree))
  275.     @Display
  276.         @BothFree bytes are required to install both QuickTime
  277.         and the OMO Player, but only @DiskFree(@OutDrive) bytes
  278.         are free on drive @OutDrive.
  279.         
  280.         The next screen will ask you to pick another hard drive
  281.         for the OMO Player.
  282.     
  283.         Press OK to continue the installation, 
  284.         or press Cancel to terminate immediately.
  285.         
  286.         @Pause
  287.         @Goto GET_OUT_DRIVE
  288.     @EndDisplay
  289. @ElseIf (@DiskFree(@OutDrive) < @PlayerFree)
  290.     @Display
  291.         @PlayerFree bytes are required to install
  292.         the OMO Player, but only @DiskFree(@OutDrive) bytes
  293.         are free on drive @OutDrive.
  294.         
  295.         The next screen will ask you 
  296.         to pick another hard drive.
  297.     
  298.         Press OK to continue the installation, 
  299.         or press Cancel to terminate immediately.
  300.         
  301.         @Pause
  302.         @Goto GET_OUT_DRIVE
  303.     @EndDisplay
  304. @EndIf
  305.  
  306. @PlayerDrive = @OutDrive
  307.  
  308. @GetSubDir
  309.     Into which directory on the @OutDrive: drive
  310.     do you wish to install the OMO Player?
  311.     
  312.     You can replace the directory path shown below.  
  313.     
  314.     Then press OK to continue the installation, 
  315.     or press Cancel to terminate immediately.
  316.     
  317.     @Prompt = "Which directory?"
  318. @EndSubDir    
  319.  
  320. SKIP_GET_OUT_DRIVE:
  321.  
  322. //----------------------------------------------------------------------
  323. //  Create the Dog Guide Program Manager group and product icon
  324. //----------------------------------------------------------------------
  325.         
  326. @If (@InstallPlayer [= @Option)
  327.     @Display   
  328.         The installer is now ready to create the 
  329.         @ProgGroup Program Manager group and the 
  330.         @Product icon.
  331.         
  332.         It will then install the OMO Player onto your hard disk.
  333.         
  334.         Press OK to continue the installation, 
  335.         or press Cancel to terminate immediately.
  336.         
  337.         @Pause
  338.     @EndDisplay
  339. @Else
  340.     @Display   
  341.         The installer is now ready to create the 
  342.         @ProgGroup Program Manager group and the 
  343.         @Product icon.
  344.         
  345.         Press OK to continue the installation, 
  346.         or press Cancel to terminate immediately.
  347.         
  348.         @Pause
  349.     @EndDisplay
  350. @EndIf
  351.  
  352. @Command = "@PlayerDrive:@SubDir\\@PlayerEXE @CDDrive:\\@Stack"
  353. @ProgramManager("[CreateGroup(@ProgGroup)] [AddItem(@Command, @Product)]")
  354.  
  355. //----------------------------------------------------------------------
  356. //  Optionally install the OMO Player
  357. //----------------------------------------------------------------------
  358.  
  359. @DefineDisk
  360.     @Label = "Complete Guide to Dogs"
  361.     @File omoplay\omoplay.exe       @Out *.*        @Option @InstallPlayer
  362.     @File omoplay\library\system       @Out library\system    @Option @InstallPlayer
  363.     @File omoplay\objects\aomocr_p.mox @Out objects\*.*    @Option @InstallPlayer
  364.     @File omoplay\objects\omobmp_p.mox @Out objects\*.*    @Option @InstallPlayer
  365.     @File omoplay\objects\omobtn_p.mox @Out objects\*.*    @Option @InstallPlayer
  366.     @File omoplay\objects\omofld_p.mox @Out objects\*.*    @Option @InstallPlayer
  367.     @File omoplay\objects\omogrp_p.mox @Out objects\*.*    @Option @InstallPlayer
  368.     @File omoplay\objects\omolst_p.mox @Out objects\*.*    @Option @InstallPlayer
  369.     @File omoplay\objects\Omomcqtp.mox @Out objects\*.*    @Option @InstallPlayer
  370.     @File omoplay\objects\omomov_p.mox @Out objects\*.*    @Option @InstallPlayer
  371.     @File omoplay\objects\omopal_p.mox @Out objects\*.*    @Option @InstallPlayer
  372.     @File omoplay\objects\omopat_p.mox @Out objects\*.*    @Option @InstallPlayer
  373.     @File omoplay\objects\omoshp_p.mox @Out objects\*.*    @Option @InstallPlayer
  374.     @File omoplay\objects\omosnd_p.mox @Out objects\*.*    @Option @InstallPlayer
  375.     @File omoplay\objects\omotmr_p.mox @Out objects\*.*    @Option @InstallPlayer
  376.     @File omoplay\objects\xmodst_p.mox @Out objects\*.*    @Option @InstallPlayer
  377.     @File omoplay\objects\dogguide.xcm @Out objects\*.*    @Option @InstallPlayer
  378. @EndDisk
  379.  
  380. //----------------------------------------------------------------------
  381. //  Install QuickTime for Windows using Apple's installer
  382. //  Optionally view the README.TXT file  
  383. //----------------------------------------------------------------------
  384.  
  385. @Finish
  386.     The installer is now ready to install QuickTime for Windows
  387.     into the Windows directory.
  388.     
  389.     Press OK to continue the installation, 
  390.     or press Cancel to terminate immediately.
  391.     
  392.     @Pause
  393.     @WinExec("@CDDrive:\\qtw211\\qt16.exe", 1, -1)    // wait
  394.     @Cls
  395.         
  396.     Congratulations! You've successfully installed
  397.     @Name.
  398.  
  399.     Now press either OK or Cancel, and the installation
  400.     will exit. You can then read the "readme.txt" file.
  401.     
  402.     @Pause
  403.     @WinExec("@WindowsDrive:\\@WindowsDir\\notepad @CDDrive:\\readme.txt", 1)    // don't wait
  404. @EndFinish
  405.